import { resolve } from 'path'
import { defineConfig } from 'vite'
import WindiCSS from 'vite-plugin-windicss'

export default defineConfig({
  build: {
    lib: {
      entry: resolve(__dirname, 'src/index.js'),
      name: 'BlackCat',
      formats: ['umd'],
    },
  },
  plugins: [
    WindiCSS(),
  ],
})
